﻿using System;
using DevMaker.SIC.Dao.Business;
using log4net;


namespace WebApplication1 {
    public partial class home : BasePage {
        private static readonly ILog Log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);


        public override string TemplateName {
            get { return "home"; }
        }
        protected void Page_Load(object sender, EventArgs e) {
            var turnoBussiness = new TurnoBussiness();
            var productoBussiness= new ProductoBussiness();
            var turnoAbiertos = turnoBussiness.ObtieneTurnosAbiertos();

            var productosTop = productoBussiness.ObtieneTopVentas();

            var turnosCerrados = turnoBussiness.ObtieneUltimosTurnosCerrados();
            AttributesTemplate.Add("TurnosAbiertos", turnoAbiertos);
            AttributesTemplate.Add("TurnosCerrados", turnosCerrados);
            AttributesTemplate.Add("ProductosTop", productosTop);


        }
    }
}
